/**
 * Project Name:umale-maintenance
 * File Name:ReturnDataUtil
 * Package Name:com.xuhaowei.mvc.jpa.common
 * Date: 2020/3/14 下午1:33
 * Copyright (c) 2018, Neoglory-umale All Rights Reserved.
 */
package com.xuhaowei.mvc.jpa.common;

/**
 * @ClassName ReturnDataUtil
 * @Description TODO
 * @Author xuhaowei
 * @Date 2020/3/14 下午1:33
 * @Version 1.0.0
 * @since JDK 1.8
 */
public class ReturnDataUtil {

    public static <T>ReturnData<T> success(T object,String msg){
        return new ReturnData(200,msg,object);
    }
    public static <T>ReturnData<T> success(String msg){
        return new ReturnData(200,msg);
    }
    public static <T>ReturnData<T> fail(String msg){
        return new ReturnData(100,msg);
    }
}